% =========================================================================
% function shell
% Use this as a template to start any new code 
% With the use of 
% 1. LOAD_LMJ       which loads all priors and data 
% 2. LOAD_SETTINGS  which loads all settings to run the model 
% 3. PATH handler 
% 4. Initial code to the model handle to check solution is OK 
% =========================================================================
clear all; close all; clc; 
onscreen=0; 
flag_rununix=isunix; 
flag_makelocalcopy =1; % Copy the settings and loading file to the outpath 
% =========================================================================
% root ='ptjgap';
% spec ='ama'; 
% subf ='chimod nfbs gdp 84'; 
if isunix
    addtools; 
end 

% root ='udsregmebnd';
% spec ='lindtr'; 
% subf ='1trend z terragona'; 
% add2outpath='refine test';

root ='udsregmebnd'; 
spec ='lindtr'; 
subf ='1trend z tight f addL2Y corr2'; 
add2outpath='refine test';


% if left empty default name is settings.m 
set_fname='settings'; 
% if left empty name of outpath will just be the date 

% =========================================================================
% =========================================================================
% END USER INPUT 
% =========================================================================
% =========================================================================
if isunix==1; onscreen=0; end 
lmj_shell;     
estima_initial;
estima_fcastroll_init; %initialize things at first estimation date
estima_fcastroll_evolve; %rolling the estimation


